﻿<%@ Page Title="" Language="C#" MasterPageFile="~/GalleryPage.master" AutoEventWireup="true"
    CodeFile="Default.aspx.cs" Inherits="Gallery_Default" %>

<%@ Register Assembly="PagerControl" Namespace="CutePager" TagPrefix="cc1" %>
<%-- Add content controls here --%>
<asp:Content ID="Content1" ContentPlaceHolderID="Galleryhead1" runat="Server">
    <title>
        Gallery - <%= Common.title %>
    </title>
</asp:Content>
<%-- Minh them vao cho nay --%>
<asp:Content ID="Content2" ContentPlaceHolderID="GalleryContent1" runat="Server">
    <script type="text/javascript" src="Scripts/jquery-gallery-slider.js"></script>
    <script type="text/javascript">
        $(window).load(function () {
            $('#gallery-slider').nivoSlider();
        });
    </script>
    <!-- GALLERY WRAPPER -->
    <div id="galleryWrapper">
        <div id="gallery-top">
            <div id="icon-dua">
                <asp:Image ID="Image1" runat="server" ImageUrl="~/Images/dltn/caydua.png" />
            </div>
            <div id="text-time">
                <div id="text">
                    <asp:HyperLink ID="linkHome" runat="server" CssClass="linkHome" NavigateUrl="~/">
                    TRANG CHỦ</asp:HyperLink>
                    » GALLERY
                </div>
                <div id="time">
                    21/04/2013 08:23 (GMT+7)
                </div>
            </div>
            <div id="link">
                <div class="icon">
                    <asp:Image ID="Image2" runat="server" ImageUrl="~/Images/dltn/twisterMini.png" />
                </div>
                <div class="icon">
                    <asp:Image ID="Image3" runat="server" ImageUrl="~/Images/dltn/facebookMini.png" />
                </div>
            </div>
        </div>
        <!-- GALLERY SLIDE -->
        <div class="slider-wrapper theme-default">
            <div id="gallery-slider" class="nivoSlider">
                <asp:Image ID="Image4" runat="server" ImageUrl="~/Images/dltn/sky1.jpg" />
                <asp:Image ID="Image5" runat="server" ImageUrl="~/Images/dltn/sky2.jpg" />
                <asp:Image ID="Image6" runat="server" ImageUrl="~/Images/dltn/sky3.jpg" />
                <asp:Image ID="Image7" runat="server" ImageUrl="~/Images/dltn/sky4.jpg" />
                <asp:Image ID="Image8" runat="server" ImageUrl="~/Images/dltn/sky5.jpg" />
            </div>
        </div>
        <div id="gallery-icon">
            <asp:Image ID="Image9" runat="server" ImageUrl="~/Images/dltn/gallery-new.png" />
        </div>
        <!-- END GALLERY SLIDE -->
        <asp:UpdatePanel ID="updatepanel1" runat="server">
            <ContentTemplate>
                <!-- MAIN GALLERY -->
                <div id="main-gallery">
                    <asp:DataList runat="server" ID="dlGallery" RepeatColumns="3" CellPadding="0">
                        <ItemTemplate>
                            <div style="float: left" id="galleyItem">
                                <div class="galleyItem-child">
                                    <a href='BoSuuTap/<%# Eval("Id") + "/" + GetTieuDe(Eval("Ten")) + ".aspx" %>'>
                                        <img src="<%# "Upload/HinhAnh/" + Eval("Id") + "/Thumb/" + GetDienGiai(Eval("Id")) %>"
                                            width="180px" height="110px" alt="1144953 3 2x"></a>
                                    <div style="text-align: center;">
                                        <a href='BoSuuTap/<%# Eval("Id") + "/" + GetTieuDe(Eval("Ten")) + ".aspx" %>' 
                                            style="color: #bb0009; font-weight: bold; text-align: center; font-size: 10px;width:180px;text-decoration:none;">
                                        <%# Eval("Ten").ToString().Length > 22 ? Eval("Ten").ToString().Substring(0, 22) + "..." : Eval("Ten")%>
                                        </a>
                                    </div>
                                    <div style="font-size: 10px; color: #666666">
                                        <%# Eval("DienGiai").ToString().Length > 40 ? Eval("DienGiai").ToString().Substring(0, 40) + "..." : Eval("DienGiai")%>
                                    </div>
                                </div>
                            </div>
                        </ItemTemplate>
                    </asp:DataList>
                </div>
                <!-- END GALLERY SLIDE -->
            </ContentTemplate>
        </asp:UpdatePanel>
        <div id="paging-gallery">
            <div id="paging-wrapper">
                <cc1:Pager ID="Pager1" runat="server" PreviousClause="Lùi" NextClause="Tiến" LastClause=""
                    FirstClause="" PageClause="<html><b>Trang </b></html>" ShowResultClause="Hiển thị từ"
                    ShowingResultClause="Đang hiển thị từ" BackToPageClause="Quay lại trang" OfClause=" /"
                    PageSize="12" OnCommand="Pager1_Command" ForeColor="#CC0000" Font-Bold="True" />
            </div>
        </div>
    </div>
    <!-- END GALLERY WRAPPER -->
    
    <div class="fb-like" data-href="<%= Common.sPathUpLienKet+ HttpContext.Current.Request.Url.AbsolutePath.ToString()%>"
        data-width="630" data-show-faces="true" data-send="true">
    </div>
    <div class="fb-comments" data-href='<%= Common.sPathUpLienKet+ HttpContext.Current.Request.Url.AbsolutePath.ToString()%>'
        data-width="630" data-num-posts="10">
    </div>
</asp:Content>
